﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data.SqlClient;

namespace ProgNetComponents.Data.Sql
{
    public class SqlSchemaChecker : SchemaChecker
    {
        public SqlSchemaChecker(string connectionString)
            : base(connectionString)
        {

        }
        protected override string TableNameColumn
        {
            get { return "TABLE_NAME"; }
        }

        protected override string ColumnNameColumn
        {
            get { return "COLUMN_NAME"; }
        }

        protected override string TableName
        {
            get { return "INFORMATION_SCHEMA.COLUMNS"; }
        }

        protected override System.Data.Common.DbDataAdapter CreateAdapter(string connectionString, string selectString)
        {
            return new SqlDataAdapter(selectString, connectionString);
        }
    }
}
